<?php
	include 'Pessoa.php';
	
	class Administrador extends Pessoa{
		private $graduacao, $orgao, $nome, $telefone = array(), $matricula, $email;

		
		//Setters e Getters
		public function setGraduacao($grad){
			if($grad!=null && strlen($grad)>0){
				$this->graduacao = $grad;
			}
		}
		
		public function setOrgao($orgao){
			if($orgao!=null && strlen($orgao)>0){
				$this->orgao = $orgao;
			}
		}
		
			
		public function adicionaTelefone($tel){
			if($tel!=null && strlen($tel)>0){
				array_push($this->telefone);
			}
		}
		
		public function setMat($mat){
			if($mat!=null && strlen($mat)>0){
				$this->matricula = $mat;
			}
		}
		
		public function setEmail($email){
			if($email!=null && strlen($email)>0){
				$this->email = $email;
			}
		}
		
		
		/*Fim dos Setters
		 * Inicio dos Getters
		*/
		public function getGrad(){
			return $this->graduacao;
		}
		
		public function getOrgao(){
			return $this->orgao;
		}
		
		public function  getNome(){
			return $this->nome;
		}
		
		public function getTel(){
			return $this->telefone;
		}
		
		public function getMat(){
			return $this->matricula;
		}
		
		public function getEmail(){
			return $this->email;
		}
		//Fim dos Getters
	}
?>
